import request from "@/utils/request-inspection";

// ---------------------------------------------------管点-------------------------------------------------
class TaskSetAPI {
  // 新增 编辑
  static api_add(data: any) {
    return request({
      url: "/api/task-set/edit",
      method: "post",
      data,
    });
  }

  // 删除
  static api_del(id: any) {
    return request({
      url: "/api/task-set/" + id,
      method: "delete",
    });
  }

  // 复制
  static api_copy(id: any) {
    return request({
      url: "/api/task-set/copy/" + id,
      method: "post",
    });
  }

  // 查询
  static api_query(data: any) {
    return request({
      url: "/api/task-set/page",
      method: "get",
      params: data,
    });
  }

  // 详情
  static api_detail(id: number) {
    return request({
      url: "/api/task-set/detail/" + id,
      method: "get",
    });
  }

  // 分公司下所有操作员
  static api_query_operators(data: any) {
    return request({
      url: "/api/user-center/sub-company-operators",
      method: "get",
      params: data,
    });
  }

  // 分公司下所有部门
  static api_query_dep() {
    return request({
      url: "/api/user-center/sub-company-departments",
      method: "get",
    });
  }

  // 获取当前登录人信息
  static api_query_userinfo() {
    return request({
      url: "/api/user-center/current-operator",
      method: "get",
    });
  }
}
export default TaskSetAPI;
